﻿<%@ Page Title="工作动态" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DynamicWorksList.aspx.cs" Inherits="KPI.DynamicWorksList" %>
<%@ Register src="Controls/PageingControl.ascx" tagname="PageingControl" tagprefix="uc1" %>
<%@ Register Src="Controls/Messages.ascx" TagName="Messages" TagPrefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 <script type="text/javascript">
     $(window).load(function () {

         $('.rowitem').hover(item_mouseover, item_mouseout);

     });
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <div class="pagetitle">
			<span>工作动态列表 </span>
	</div>
	<uc3:Messages ID="Messages1" runat="server" />

    <div class="options">
		<div style=" padding-top:3px; font-weight:bold">标题 : </div><asp:TextBox ID="txttitle" runat="server"></asp:TextBox>
		&nbsp;&nbsp;
		<asp:Button ID="btnSearch" runat="server" CssClass="button" Text="查 询" 
            onclick="btnSearch_Click"  />
		<asp:Button ID="btnDeleteSelected" runat="server" Visible="false" CssClass="button" Text="删除选择项" OnClick="btnDeleteSelected_Click"  OnClientClick="return deleteConfirm(true);" />
	</div>
    <div class="clear">
	</div>
    <uc1:PageingControl ID="PageControlPD" runat="server" OnpageIndexchange="PageControlPD_Indexchange"  />
    		<div id="tasklist" class="listdatacontainer">
            <table cellpadding="5" cellspacing="0" class="listtable" width="100%">
            <asp:Repeater ID="RPPolicyDocumentsList" runat="server">
                <HeaderTemplate>
                <thead>
                    <tr>
                        <th style=" width:2%">
							<asp:CheckBox ID="chbSelectAll" runat="server" CssClass="chball" />
					    </th>
                        <th  style="width:28%">标题</th>
                        <th style="text-align:center; width:50%">内容</th>
                        <th style="text-align:center; width:12%">添加时间</th>
                        <%--<th style="text-align:center; width:12%">最后修改时间</th>--%>
                        <th style="width:5%"></th>
                    </tr>
                </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr id="rowItem" class="rowitem">
                        <td>
                        	<asp:CheckBox ID="chbSelect" runat="server" CssClass="chbitem"   rel='<%#Eval("WorkNewsID") %>' />
                        </td>
                        <td><%# Eval("WorkNewsTitle")%></td>
                        <td><%# DataAccess.CommonHelper.GetSubString(KPI.CommonHelper.HtmlStripTags(Eval("WorkNewsContent").ToString()).TrimStart(), 40, "...")%></td>
                        <td style="text-align:center;"><%#  Convert.ToDateTime(Eval("WorkNewsAddTime")).ToString("yyyy-MM-dd HH:mm")%></td>
                        <%--<td><%#  Convert.ToDateTime(Eval("WorkNewsModifyTime")).ToString("yyyy-MM-dd HH:mm")%></td>--%>
                        <td>
                            <a name="hlTaskDetail" href="/DynamicWorkDetail.aspx?wnid=<%# Eval("WorkNewsID") %>">详情</a>
					    </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            </table>
		</div>

</asp:Content>
